package com.wanczy.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wanczy.pojo.Goods;
import com.wanczy.pojo.OrderUserGoods;
import com.wanczy.pojo.Shop;

public interface ShopMapper {
	//检查商户电话是否存在
	public Shop checkShop(String shopTel);
	//根据商户Id查询整条信息
	public Shop FindByShopId(Integer shopId);
	//修改商户基本信息
	public Integer updShopMessage(Shop shop);
	//查询商户商品的信息
	public List<Goods> findByShopId(Integer shopId);
	//商户商品信息表单回显
	public Goods findByGoodsId(Integer goodsId);
	//修改商品信息
	public Integer updShopGoods(Goods goods);
	//商品下架功能
	public Integer GoodsDown(Integer goodsId);
	//重新上架商品
	public Integer GoogsUp(Integer goodsId);
	//删除商品
	public Integer GoogsDel(Integer goodsId);
	//新增商品
	public Integer goodsAdd(Goods goods);
	//查询商户商品订单
	public List<OrderUserGoods> findOrder(@Param("shopId") Integer shopId,@Param("beginDay") Date beginDay,@Param("endDay") Date endDay);
	//商家发货功能
	public Integer fahuo(Integer orderId);
	//新商户注册
	public int shopRegist(Shop shop);
	//商户注册检查
	public List<Shop> registCheck(String shopName);
}
